package org.renhj.loadbalance;

import org.renhj.consumer.RpcClient;

import java.util.List;

public abstract class AbstractLoadBalance implements LoadBalance{


    @Override
    public RpcClient route(List<RpcClient> clients, String serviceName) throws Exception {
        return doSelect(clients);
    }

    public abstract RpcClient doSelect(List<RpcClient> clients) throws Exception;
}
